<html>
<head>
<title>Edit Data Binding Dialog</title>
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
<link href="../../../../book.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF">
    <h1>Edit Data Binding Dialog</h1>
	<h3>Supported for JDK 1.5 
	and above only</h3>
	<p class="pnoall">The tool provides two ways to quickly edit existing Data 
	Bindings: the <b>Data Bindings</b> menu and the <b>bindings property</b> in 
	the property pane.</p>
	<div align="left">
		<div align="left">
			<table border="0" cellpadding="0" cellspacing="0" id="table4" width="800">
				<tr>
					<td valign="top">
			<h2>Data Binding Menu</h2>
			<p>The <b>Data Bindings</b> menu provides the ability to quickly 
			edit a data binding for a widget. If the widget has existing data 
			bindings, those are shown at the top of the cascaded menu and a list 
			of widget properties is shown in a submenu. Clicking on a bound 
			property will open the
				<b>Edit Data Binding</b> dialog.<p>&nbsp;</td>
					<td width="20">&nbsp;</td>
					<td valign="top">
			<h2>Bindings Property</h2>
			<p class="pnoall">The <b>bindings property</b> in the property pane 
			opens up to show a list of all bindable properties of the widget. 
			Clicking the
			<img border="0" src="images/dot-dot-dot-button.gif" width="20" height="13" align="bottom"> 
				button next to a bound property will open the <b>Edit Data 
			Binding</b> dialog.</p>
	<p>&nbsp;</td>
				</tr>
				<tr>
					<td valign="top">
			<img border="0" src="images/data_binding_menu2.gif"><br>
&nbsp;</td>
					<td width="20">&nbsp;</td>
					<td valign="top">
			<img border="0" src="images/data_binding_property_pane2.gif"></td>
				</tr>
				<tr>
					<td valign="top">
					<img border="0" src="images/edit_data_binding1.gif"></td>
					<td width="20">&nbsp;</td>
					<td valign="top">
	<p class="pnoall">The <b>Edit Data 
				Binding</b> dialog is used to 
	customize the properties of the data binding itself. When editing a 
	binding, the update strategy from <b>
	target to model</b> and <b>model to target</b> may be specified as well as 
	any strategy-specific properties (validators and converters). </p>
	<p class="pnoall">When the Target or Model is a Text widget and the text 
	property is selected, the triggering event may be specified as <b>Swing.Modify</b>,
	<b>Swing.FocusOut</b> or <b>Swing.NONE</b>.</p>
	<p class="pnoall">
	<img border="0" src="images/text_events.gif"></p>
					</td>
				</tr>
				<tr>
					<td>
					&nbsp;</td>
					<td width="20">&nbsp;</td>
					<td valign="top">
	&nbsp;</td>
				</tr>
				<tr>
					<td valign="top">
					<img border="0" src="images/edit_data_binding2.gif"></td>
					<td width="20">&nbsp;</td>
					<td valign="top">
	<p class="pnoall">Predefined update value strategies - <b>READ_ONCE</b>,
	<b>READ</b> and <b>READ_WRITE</b> - may be selected.</p>
	<p class="pnoall">
	<img border="0" src="images/update_value_strategy.gif" align="top"></p>
					</td>
				</tr>
			</table>
	<p class="pnoall">When binding to a <b>&lt;EL Expression&gt;</b>, a text field is 
	provided where the expression may be entered.</p>
	<p class="pnoall">
	<img border="0" src="images/bind_properties_swing2.gif" align="top"></p>
	<h2>
	Source</h2>
			<p class="pnoall">Clicking the <b>Finish</b> button will generate 
			the necessary data binding code which may then be seen in the <b>Source</b> 
			view. An <b>initDataBindings()</b> method is created, if it does not 
			already exist and a call the that method is added to the end of the 
			widget creation process. Within the <b>initDataBindings()</b> 
			method, any needed bean properties are created followed by the 
			creation of each binding.</p>
			<p class="pnoall">
			<img border="0" src="images/data_binding_source2.gif"></p>
			<p class="pnoall"><i><b>Warning: </b>do not edit the <b>
			initDataBinding()</b> method by hand (without carefully matching the 
			code generation pattern used by the tool) as it will be regenerated 
			in its entirety any time the tool needs to add, remove or update a 
			data binding.</i></div>
	</div>
          </body>
</html>